package com.sirui;

import com.sirui.spider.kuai.entity.CommonConstants;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.stereotype.Indexed;

/**
 * 启动类
 * 创建者
 * 创建时间	2017年7月26日
 * API接口测试：http://localhost:8080/jpa/swagger-ui.html
 */
@SpringBootApplication
@CommonsLog
@Indexed
@EnableJpaRepositories(basePackages = {"com.sirui"},
        entityManagerFactoryRef = CommonConstants.Config_entityManagerFactory,
        transactionManagerRef = CommonConstants.Config_transactionManager_Name)
@EntityScan(basePackages = {"com.sirui"})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info(String.format("A@@A [{%s}]", "项目启动"));
        System.out.println("http://localhost:8090/jpa/test1");
        System.out.println("http://localhost:8090/swagger-ui/index.html");
        System.out.println("http://localhost:8090/api/v2/api-docs");
        System.out.println("http://localhost:8090/v3/api-docs");
        //http://localhost:8080/v2/api-docs
        //http://localhost:8080/v3/api-docs
        //http://127.0.0.1:8090/swagger-ui/index.html

    }
}